package com.cxs.client.resp;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Project: wechat-push
 * @Author: cxs2014501@163.com
 * @Create: 2023/9/7 10:36
 * @Description:
 **/
@NoArgsConstructor
@Data
public class BaiduWeatherResp {
    /**
     * status
     */
    private Integer status;
    /**
     * result
     */
    private ResultVO result;
    /**
     * message
     */
    private String message;

    /**
     * ResultVO
     */
    @NoArgsConstructor
    @Data
    public static class ResultVO {
        /**
         * location
         */
        private LocationVO location;
        /**
         * now
         */
        private NowVO now;
        /**
         * forecasts
         */
        private List<ForecastsVO> forecasts;

        /**
         * LocationVO
         */
        @NoArgsConstructor
        @Data
        public static class LocationVO {
            /**
             * country
             */
            private String country;
            /**
             * province
             */
            private String province;
            /**
             * city
             */
            private String city;
            /**
             * name
             */
            private String name;
            /**
             * id
             */
            private String id;
        }

        /**
         * NowVO
         */
        @NoArgsConstructor
        @Data
        public static class NowVO {
            /**
             * text
             */
            private String text;
            /**
             * temp
             */
            private Integer temp;
            /**
             * feels_like
             */
            private Integer feels_like;
            /**
             * rh
             */
            private Integer rh;
            /**
             * wind_class
             */
            private String wind_class;
            /**
             * wind_dir
             */
            private String wind_dir;
            /**
             * uptime
             */
            private String uptime;
        }

        /**
         * ForecastsVO
         */
        @NoArgsConstructor
        @Data
        public static class ForecastsVO {
            /**
             * text_day
             */
            private String text_day;
            /**
             * text_night
             */
            private String text_night;
            /**
             * high
             */
            private Integer high;
            /**
             * low
             */
            private Integer low;
            /**
             * wc_day
             */
            private String wc_day;
            /**
             * wd_day
             */
            private String wd_day;
            /**
             * wc_night
             */
            private String wc_night;
            /**
             * wd_night
             */
            private String wd_night;
            /**
             * date
             */
            private String date;
            /**
             * week
             */
            private String week;
        }
    }
}
